package com.serecttask.model;

import lombok.Data;
import lombok.ToString;

/**
 * JSON模型
 * <p/>
 * 用户后台向前台返回的JSON对象
 */
@Data
@ToString
public class JsonModel implements java.io.Serializable {


    //请求是否成功
    private boolean success = false;
    //返回消息
    private String msg = "";
    private String message = "";
    private String errorMsg = "";
    //返回消息编码
    private String messageEncode = "";
    //请求返回内容
    private Object dataObj = null;
    private Object data = null;

    //请求返回内容总页数
    private int totalpages = 0;
    //请求返回内容当前页
    private int currentpage = 0;
    //请求返回内容总记录数
    private int totalrecords = 0;
    //请求内容分页大小
    private int pagerows = 10;
    //请求内容排序字段
    private String sort;
    //请求内容排序方式
    private String order;

}
